package cn.itsource.pet.controller;

import cn.itsource.basic.util.JsonResult;
import cn.itsource.pet.domain.SearchMasterMessage;
import cn.itsource.pet.domain.SearchMasterMsg;
import cn.itsource.pet.query.SearchMasterMessageQuery;
import cn.itsource.pet.query.SearchMasterMsgQuery;
import cn.itsource.pet.service.ISearchMasterMsgService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * 宠物接单类
 */
@RestController
@Api(tags = "宠物接单类", description = "宠物接单类")
@RequestMapping("/searchMasterMsg")
public class SearchMasterMsgController {
    @Resource
    private ISearchMasterMsgService searchMasterMsgService;
    @PostMapping("/findPage")
    public JsonResult findPage(@RequestBody SearchMasterMsgQuery messageQuery){
        return JsonResult.createSuccess(searchMasterMsgService.findPage(messageQuery));
    }


}
